''''''

class Fraction(object):
    def __init__(self,num,den):
        '''

        :param num: 分子
        :param den: 分母
        '''
        if isinstance(num,int) and isinstance(den,int):
            self._num=num;
            self._den=den
        else:
            print('error')

    def __getNum__(self):
        return self._num;

    def __getDen__(self):
        return self._den;

def main():
    fra1=Fraction(1,2)
    fra2=Fraction(1.2,2)

if __name__ == '__main__':
    main()